<?php


namespace App\Models\Garbage;
use App\Models\CarModels\CarArea;
use App\Models\SystemManagement\User;
use Illuminate\Database\Eloquent\Model;
use Illuminate\Support\Facades\Facade;
use DB;
class GarbageInteraction extends Model
{
    protected $table = 'garbage_interactions';
    protected $fillable = ['desc','res','status','user_id','name','phone','email','gender'];
    public function user(){
        return $this->belongsTo(WeichatUser::class,'user_id','id');
    }
    public function follows(){
        return $this->hasMany(GarbageInteractionFollow::class,'event_id','id')->with('user');
    }
}